// Mock implementation for nanoid module
// Used in Jest tests to provide predictable ID generation

let counter = 0;

const nanoid = (size = 21) => {
  counter++;
  return `test-id-${counter.toString().padStart(3, '0')}`;
};

const customAlphabet = (alphabet, size) => {
  return (length = size) => {
    counter++;
    return `custom-${counter.toString().padStart(3, '0')}`;
  };
};

module.exports = {
  nanoid,
  customAlphabet
};
